import request from '@/utils/request'

// // 查询施工攻略列表
// export function listStrategy(query) {
//   return request({
//     url: '/system/strategy/list',
//     method: 'get',
//     params: query
//   })
// }
//
// // 查询施工攻略详细
// export function getStrategy(strategyId) {
//   return request({
//     url: '/system/strategy/' + strategyId,
//     method: 'get'
//   })
// }
//
// // 新增施工攻略
// export function addStrategy(data) {
//   return request({
//     url: '/system/strategy',
//     method: 'post',
//     data: data
//   })
// }
//
// // 修改施工攻略
// export function updateStrategy(data) {
//   return request({
//     url: '/system/strategy',
//     method: 'put',
//     data: data
//   })
// }
//
// // 删除施工攻略
// export function delStrategy(strategyId) {
//   return request({
//     url: '/system/strategy/' + strategyId,
//     method: 'delete'
//   })
// }
//
// // 导出施工攻略
// export function exportStrategy(query) {
//   return request({
//     url: '/system/strategy/export',
//     method: 'get',
//     params: query
//   })
// }






// import request from '@/utils/request'
//
// 查询施工攻略列表
export function listStrategy(query) {
  return request({
    url: '/construction/strategy/list',
    method: 'get',
    params: query
  })
}

// 查询施工攻略详细
export function getStrategy(constructionStrategyId) {
  return request({
    url: '/construction/strategy/' + constructionStrategyId,
    method: 'get'
  })
}

// // 新增施工攻略
export function addStrategy(data) {
  return request({
    url: '/construction/strategy/INSERTa',
    method: 'post',
    data: data
  })
}
//
// // 修改施工攻略
export function updateStrategy(data) {
  return request({
    url: '/construction/strategy',
    method: 'put',
    data: data
  })
}

// 删除施工攻略
export function delStrategy(constructionStrategyIds) {
  return request({
    url: '/construction/strategy/' + constructionStrategyIds,
    method: 'delete'
  })
}

// 导出施工攻略
export function exportStrategy(query) {
  return request({
    url: '/construction/strategy/export',
    method: 'get',
    params: query
  })
}

// 查询店铺列表
export function selectSupplierList(){
  return request({
    url: '/construction/strategy/selectSupplierList',
    method: 'get',
  })
}
// 上传图片
export function uploadImage(data) {
  return request({
    url: '/shopping/productPict/uploadImage',

    method: 'post',
    data: data
  })
}

// 上传视频
export function uploadVideo(data) {
  return request({
    url: '/construction/strategy/uploadVideo',
    method: 'post',
    data: data
  })
}


// *************VR全景的*****************
// 查询施工攻略全景VR列表
export function listVr(query) {
  return request({
    url: '/construction/strategy/listvr',
    method: 'get',
    params: query
  })
}
// / 新增施工攻略全景VR
export function addVr(data) {
  return request({
    url: '/construction/strategy/addvr',
    method: 'post',
    data: data
  })
}
export function uploadImageVr(data) {
  return request({
    url: '/shopping/productPict/uploadImageVr',
    method: 'post',
    data: data
  })
}


// 视频上传
export function upVideo(data) {
  return request({
    url: '/construction/strategy/upVideo',
    method: 'post',
    data: data
  })
}

